package com.handpay.zztong.hp.utils;

/**
 * Created by sxshi on 2018-1-23.
 */

public class Utils {
    public static final int DELAY = 1000;
    private static long lastClickTime = 0;

    /**
     * 判断点击事件 控制点击速度
     * @return
     */
    public static boolean isNotFastClick() {
        long currentTime = System.currentTimeMillis();
        if (currentTime - lastClickTime > DELAY) {
            lastClickTime = currentTime;
            return true;
        } else {
            return false;
        }
    }
}
